home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 February / enter-2006-02.iso / files / Illustrator_CS2_ue_TryOut.exe / bridge / Adobe Bridge 1.0.msi / Data1.cab / _2shutdown.jsx < prev    next >
Encoding:
Text File  |  2005-03-24  |  1.3 KB  |  41 lines

  1. /**************************************************************************
  2. *
  3. *  @@@BUILDINFO@@@ 02shutdown.jsx 1.0.0.47 07-Feb-2005
  4. *  Copyright 2005 Adobe Systems Incorporated
  5. *  All Rights Reserved.
  6. *
  7. * NOTICE:  All information contained herein is, and remains the property of
  8. * Adobe Systems Incorporated  and its suppliers,  if any.  The intellectual 
  9. * and technical concepts contained herein are proprietary to  Adobe Systems 
  10. * Incorporated  and its suppliers  and may be  covered by U.S.  and Foreign 
  11. * Patents,patents in process,and are protected by trade secret or copyright 
  12. * law.  Dissemination of this  information or reproduction of this material
  13. * is strictly  forbidden  unless prior written permission is  obtained from 
  14. * Adobe Systems Incorporated.
  15. **************************************************************************/
  16.  
  17. // Shutdown code.
  18.  
  19. app.shutdown = false;
  20.  
  21. app.queryShutdown = function()
  22. {
  23.     // check whether all debug sessions are stopped
  24.     app.shutdown = true;
  25.     var ok = Debugger.queryExit();
  26.     app.shutdown = ok;
  27.     return ok;
  28. }
  29.  
  30. // Write the current prefs during app shutdown
  31.  
  32. app.onShutdown = function (shiftKeyPressed)
  33. {
  34.     app.shutdown = true;
  35.     // stop timers
  36.     app.cancelTask();
  37.     // defined in 17prefs.jsx
  38.     if (!shiftKeyPressed)
  39.         prefs.save();
  40. }
  41.